package cn.hongwei.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

/**
 * @author Great
 * @email 1224028994@qq.com
 */
@Repository
public class UserDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void addUser(String username,String password){
        String sql="insert into users(username,password) values(?,?)";
        jdbcTemplate.update(sql,username,password);
    }
}
